﻿using EkStudio.com.bean.xml.reflection;
using System.Collections.Generic;
using System;

namespace EkStudio.com.bean.xml.RootInterface.DataSource
{
    public class BillSourceTabItems:BillObjectInterface
    {
        private string key = "";
        private string caption = "";
        private string tableName = "";
        private bool canSave = true;
        private string content = "";

        private List<BillSourceFields> fields;

        [Xml("key")]
        public string Key
        {
            get
            {
                return key;
            }

            set
            {
                key = value;
            }
        }
        [Xml("caption")]
        public string Caption
        {
            get
            {
                return caption;
            }

            set
            {
                caption = value;
            }
        }
        [Xml("tableName")]
        public string TableName
        {
            get
            {
                return tableName;
            }

            set
            {
                tableName = value;
            }
        }
        [Xml("canSave")]
        public bool CanSave
        {
            get
            {
                return canSave;
            }

            set
            {
                canSave = value;
            }
        }
        [XmlElement("content")]
        public string Content
        {
            get
            {
                return content;
            }

            set
            {
                content = value;
            }
        }
        [XmlTransient]
        public object ParentBean
        {
            get
            {
                return null;
            }

            set
            {
                
            }
        }
        [XmlElement("fields")]
        public List<BillSourceFields> Fields
        {
            get
            {
                return fields;
            }

            set
            {
                fields = value;
            }
        }

        public object Clone()
        {
            throw new NotImplementedException("数据源字段不提供复制");
        }
    }
}
